﻿//name:trader.h
//who: by Jack Chen
//what: just make a logic for worried trader

#include <monster>  // suppose monster is RT provided

inherit MONSTER ;   //   <--- the real code


class Trader() : MONSTER
{
    /*  THIS PART IS THE REAL CODE BUT SOMEHOW TOO MESSY, SO I COMMENT IT OUT TEMPORARY.
        I REWRITE THE DECLARATION SO IT LOOKS A LITTLE BIT NEATER.

        public:
          ::create();
	    set_level(temp); // temp used when attribute haven't decide yet 
            set ("long", @LONG
                               xx是專門進口國外物資的商人, 現在正在港口不斷的踱步, 或許你可以問問他
                               發生什麼事情了(matter) 
                 LONG) ;
	    set_name("xx trader", "xx商人");
	    set("unit", "位");
            set("gender", "male");
    */

    // member attributes
    // (其實這部分應該不用宣告因為 既然 inherit from <monster>, 這些 attibutes 應該都有了)
    // (不過為了清楚, 這兒我們還是再放一次)
    int    level;
    string longDesc;
    string name;
    string unit;
    bool   gender;  // 女真男假

    // member functions        
    void nowwhat();      //indicate how far the player has gone
    void check_items();  //check items that required to get into vagrant's village

    void trigger__input_askMatter();
    bool trigger__input_askAmIHandsome(Player* player); // there might be more than one "ask" sentences  // 可以接受的 問題 可能不止一個
    void trigger__input_accept();                       // if user accept
}